import {
    center,
} from '@/css/DialogsCss.module.scss';
export default {
    title:'客户详情',
    dialog:{
        size:'50%'
    },
    onMounted: [{
        action: 'set',
        target: '$widgets.formbasic',
        field: 'value',
        value: '$params'
    }],
    items: [{
        region: 'center',
        span: 10,
        class: center,
        layout: 'vertical',
        items: [{
            layout: 'vertical',
            items: [{
                id: 'formbasic',
                widget: 'form',
                layout: {
                    type:'gridform',
                    column:2
                },
                fields:[{
                    itemId:'name',
                    widget:'form-text',
                    label:'客户(公司)',
                },{
                    itemId:'category_uuid',
                    print: true,
                    widget:'select',
                    dictionary: {
                        path: 'common/dictionary/config',
                        params: {
                            name: 'crm_customer_category',
                        },
                    },
                    label:'客户分类',
                },{
                    itemId:'industry_uuid',
                    print: true,
                    widget:'select',
                    dictionary: {
                        path: 'common/dictionary/config',
                        params: {
                            name: 'crm_customer_industry',
                        },
                    },
                    label:'所属行业',
                },{
                    itemId:'source_uuid',
                    print: true,
                    widget:'select',
                    dictionary: {
                        path: 'common/dictionary/config',
                        params: {
                            name: 'crm_customer_source',
                        },
                    },
                    label:'客户来源',
                },{
                    itemId:'status_uuid',
                    print: true,
                    widget:'select',
                    dictionary: {
                        path: 'common/dictionary/config',
                        params: {
                            name: 'crm_customer_status',
                        },
                    },
                    label:'客户状态',
                },{
                    itemId:'level_uuid',
                    print: true,
                    widget:'select',
                    dictionary: {
                        path: 'common/dictionary/config',
                        params: {
                            name: 'crm_customer_level',
                        },
                    },
                    label:'客户等级',
                },{
                    itemId:'stage_uuid',
                    print: true,
                    widget:'select',
                    dictionary: {
                        path: 'common/dictionary/config',
                        params: {
                            name: 'crm_sale_stage',
                        },
                    },
                    label:'当前阶段',
                },{
                    itemId:'label_uuid',
                    print: true,
                    widget:'select',
                    dictionary: {
                        path: 'common/dictionary/config',
                        params: {
                            name: 'crm_customer_label',
                        },
                    },
                    label:'客户标签',
                },{
                    itemId:'salesman',
                    widget:'form-text',
                    label:'销售联系人',
                },{
                    itemId:'contact',
                    widget:'form-text',
                    label:'客户联系人',
                },{
                    itemId:'phone',
                    widget:'form-text',
                    label:'手机号码',
                },{
                    itemId:'qq',
                    widget:'form-text',
                    label:'QQ号码',
                },{
                    itemId:'wechat',
                    widget:'form-text',
                    label:'微信号码',
                },{
                    itemId: 'last_follow_time',
                    widget:'form-text',
                    label:'最近联系',
                },{
                    itemId:'contents',
                    widget:'form-text',
                    label:'沟通内容',
                },{
                    itemId: 'next_plan_time',
                    widget:'form-text',
                    label:'下次跟进',
                },{
                    itemId:'remarks',
                    widget:'form-text',
                    label:'备注说明',
                }],
                flex: true
            }]
        }]
    }]
};


